from hyperlpr import *
import cv2

if __name__ == '__main__':
    image = cv2.imread("test.jpg")
    # 打印识别结果
    lpr_result = HyperLPR_plate_recognition(image)
    print("[0]")
    print(lpr_result[0])
    result = lpr_result[0]
    print("plateNo:")
    print(lpr_result[0][0])
    print("location:")
    print("x1{},y1{},x2{},y2{}".format(result[2][0], result[2][1], result[2][2], result[2][3]))
